//
//  MusicPlayViewController.h
//  项目
//
//  Created by 张诗雨 on 14/12/31.
//  Copyright (c) 2014年 张诗雨. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PlayInfoModel.h"
#import <AVFoundation/AVFoundation.h>
#import "AudioStreamer.h"

typedef NS_ENUM(NSInteger, MusicPlayState) {
    // 其他音乐正在播放
    MusicPlayStateOtherPlaying,
    // 未有音乐在播放
    MusicPlayStateNone,
    // 音乐开始播放
    MusicPlayStateStart,
    // 音乐暂停播放
    MusicPlayStatePause,
};

@interface MusicPlayViewController : UIViewController<UITableViewDataSource, UITableViewDelegate, UIScrollViewDelegate>
@property (nonatomic, copy)NSString *mid;
@property (nonatomic, retain)NSMutableArray *tableArray;
@property (nonatomic, retain)UIView *backView;
@property (nonatomic, retain)UIImageView *imgView; /// 音乐背景原图
@property (nonatomic, retain)NSDictionary *dic;
//@property (nonatomic, retain)AudioStreamer *audioPlayer;
@property (nonatomic, retain)UIPageControl *pageControl;
@property (nonatomic, retain)UIScrollView *scrollView;
// 播放按钮
@property (nonatomic, retain)UIButton * playButton;
@property (nonatomic) MusicPlayState musicPlayState;

@property (nonatomic, retain)UIImageView *blurredImg; /// 模糊背景大图
@property (nonatomic, retain)UILabel *titleLable;
@property (nonatomic, retain)UIWebView *webView;
#warning 正在播放歌曲的位置
@property (nonatomic, assign)NSInteger playingIndex;

/// 播
@property (nonatomic, retain)UILabel *anchorLable;
///  文
@property (nonatomic, retain)UILabel *ahouthor;

@property (nonatomic, retain)NSTimer *progressUpdateTimer;

@property (nonatomic, retain)NSTimer *levelMeterUpdateTimer;

@property (nonatomic, retain)UISlider *progressSlider;

@end
